Provides support for lazy initialization.
Namespace:
System
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ <ComVisibleAttribute(False)> _ <HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization := True, _ ExternalThreading := True)> _ Public Class Lazy(Of T) |
C# |
---|
[SerializableAttribute] [ComVisibleAttribute(false)] [HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization = true, ExternalThreading = true)] public class Lazy<T> |
Type Parameters
- T
- Specifies the type of element being laziliy initialized.
Remarks
By default, all public and protected members of Lazy<(Of <(T>)>) are thread-safe and may be used concurrently from multiple threads. These thread-safety guarantees may be removed optionally and per instance using parameters to the type's constructors.
Inheritance Hierarchy
System..::.Object
System..::.Lazy<(Of <(T>)>)
System..::.Lazy<(Of <(T>)>)